<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
 <link href="${pageContext.request.contextPath}/adminfile/assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="${pageContext.request.contextPath}/adminfile/css/style.css"/>       
        <link href="${pageContext.request.contextPath}/adminfile/assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/adminfile/assets/css/ace.min.css" />
        <link rel="stylesheet" href="${pageContext.request.contextPath}/adminfile/font/css/font-awesome.min.css" />
        <!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="${pageContext.request.contextPath}/adminfile/js/jquery-1.9.1.min.js"></script>
        <script src="${pageContext.request.contextPath}/adminfile/assets/js/bootstrap.min.js"></script>
		<script src="${pageContext.request.contextPath}/adminfile/assets/js/typeahead-bs2.min.js"></script> 
        <script type="text/javascript" src="${pageContext.request.contextPath}/adminfile/js/H-ui.js"></script>      	
		<script src="${pageContext.request.contextPath}/adminfile/assets/js/jquery.dataTables.min.js"></script>
		<script src="${pageContext.request.contextPath}/adminfile/assets/js/jquery.dataTables.bootstrap.js"></script>
        <script src="${pageContext.request.contextPath}/adminfile/assets/layer/layer.js" type="text/javascript" ></script>          
        <script src="${pageContext.request.contextPath}/adminfile/assets/laydate/laydate.js" type="text/javascript"></script>
        <script src="${pageContext.request.contextPath}/adminfile/assets/js/jquery.easy-pie-chart.min.js"></script>
        <script src="${pageContext.request.contextPath}/adminfile/js/lrtk.js" type="text/javascript" ></script>
<title>竞拍详细</title>
</head>

<body>
<div class="margin clearfix">
<div class="Order_Details_style">
<div class="Numbering">竞拍信息编号:<b>${auctionInfo.auctionInfoId}</b></div></div>
 <div class="detailed_style">
 <!--收件人信息-->
    <div class="Receiver_style">
     <div class="title_name">竞拍信息</div>
     <div class="Info_style clearfix">
        <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 起步价： </label>
         <div class="o_content">${auctionInfo.auctionStartPrice}</div>
        </div>
        <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 竞价阶梯： </label>
         <div class="o_content">${auctionInfo.auctionLadder}</div>
        </div>
         <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 一口价： </label>
         <div class="o_content">${auctionInfo.auctionOnePrice}</div>
        </div>
         <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 开始时间： </label>
         <div class="o_content">${order.auctionStartTime}</div>
        </div>
        <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 结束时间： </label>
         <div class="o_content">${auctionInfo.auctionEndTime}</div>
        </div>
        <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 状态： </label>
         <div class="o_content">${auctionInfo.auctionState}</div>
        </div>
        <div class="col-xs-3">  
         <label class="label_name" for="form-field-2"> 竞价次数： </label>
         <div class="o_content">${auctionInfo.auctionNum}</div>
        </div>
        <div class="col-xs-3">  
         <label class="label_name" for="form-field-2">成交价： </label>
         <div class="o_content">${auctionInfo.transactionPrice}</div>
        </div>
     </div>
    </div>
    <!--信息-->
    <div class="product_style">
    <div class="title_name">产品信息</div>
    <div class="Info_style clearfix">
      <div class="product_info clearfix" style="width: 100%">
      <a href="#" class="img_link"><img src="${pageContext.request.contextPath}/adminfile/products/p_3.jpg" /></a>
      <span>
      <a href="#" class="name_link">${auctionInfo.art.artName}</a><br>
      <p>规格：${auctionInfo.art.artSize}</p>
      <p>类别：${auctionInfo.art.category.categoryName}</p>
      </span>
      </div>
    </div>
    </div>
    <div class="page-content clearfix">
    <table class="table table-striped table-bordered table-hover" id="sample-table">
		<thead>
		  <tr>
				<th width="25"><label><input type="checkbox" class="ace"><span class="lbl"></span></label></th>
				<th width="50">ID</th>
				<th width="50">出价</th>
				<th width="50">最高价</th>
				<th width="50">时间</th>
				<th width="50">用户</th>
			</tr>
		</thead>
	<tbody>
	<c:forEach items="${auctionInfo.auction}" var="auction">
	  <tr>
          <td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
          <td>${auction.auctionId}</td>
          <td>${auction.auctionPrice}</td>
          <c:choose>
          	<c:when test="${auction.topPrice==1}"><td>是</td></c:when>
          	<c:when test="${auction.topPrice==0}"><td>否</td></c:when>
          </c:choose>
          <td>${auction.auctionTime}</td>
          <td>${auction.user.userName}</td>
          </c:forEach>
    </tbody>
    </table>
  </div>
 </div>
</div>
<div class="Button_operation">
				<button onclick="article_save_submit();" class="btn btn-primary radius" type="submit"><i class="icon-save "></i>返回上一步</button>
				
				<button onclick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
            
            
 </div>
</div>
</body>
</html>
<script type="text/javascript">
jQuery(function($) {
	var oTable1 = $('#sample-table').dataTable( {
	"aaSorting": [[ 1, "desc" ]],//默认第几个排序
"bStateSave": true,//状态保存
"aoColumnDefs": [
//{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
{"orderable":false,"aTargets":[0]}// 制定列不参与排序
] } );
	
	
	$('table th input:checkbox').on('click' , function(){
		var that = this;
		$(this).closest('table').find('tr > td:first-child input:checkbox')
		.each(function(){
			this.checked = that.checked;
			$(this).closest('tr').toggleClass('selected');
		});
			
	});


	$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
	function tooltip_placement(context, source) {
		var $source = $(source);
		var $parent = $source.closest('table')
		var off1 = $parent.offset();
		var w1 = $parent.width();

		var off2 = $source.offset();
		var w2 = $source.width();

		if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
		return 'left';
	}
})
</script>